import { getUsersApi } from '@/api/users';
import { ref } from 'vue';

export const getUsersList = async (params) => {
  const count = ref(0);
  const list = ref([]);
  // 获取接口数据
  const res = await getUsersApi(params);
  count.value = res.data.count;
  list.value = res.data.result;
  return {
    count,
    list,
  };
};

export default {};
